-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Use enum class for MaterialUpdateStage #1205
refactor: Use enum class for MaterialUpdateStage #1205
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1205 +/- ##
=======================================
Coverage 47.85% 47.86%
=======================================
Files 371 372 +1
Lines 19413 19443 +30
Branches 9148 9151 +3
=======================================
+ Hits 9291 9306 +15
- Misses 3791 3806 +15
Partials 6331 6331
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one looks good to go as it - there is one thing I would change, but it's more of an opinion matter, so I'll stamp it and then you can decide where to go with it. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic, thanks!
Updated after GSF went in, @stephenswat can you reapprove? |
Actually, I now also removed the arithmetic operator overload, since that's not needed anymore after the change requested by @stephenswat. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is motivated by arithmetic between non-class enums and other types that are not the same enum being deprecated in C++20. This mainly affects
NavigationDirection
, but I took the chance to update theMaterialUpdateStage
enum to make it an enum class.